/*
 * @Author:  WRay
 * @Date: 2021-11-09 15:13:11
 * @LastEditors:  WRay
 * @LastEditTime: 2021-11-09 16:27:51
 * @Description:
 * ===============+++++++++======================
 */
#include <iostream>

/**
 * @description: 函数名称打印
 * @param {string&&} prettyFuncon
 * @return {*}
 */
static std::string _CutParenthesesNTail(std::string&& prettyFuncon)
{
  auto pos = prettyFuncon.find('(');
  if (pos != std::string::npos)
  {
    //擦除
    prettyFuncon.erase(prettyFuncon.begin() + pos, prettyFuncon.end());
  }
  return std::move(prettyFuncon);
}

#define __STR_FUNCTION__ _CutParenthesesNTail(std::string(__PRETTY_FUNCTION__))
